package com.lovo.Game;
import java.util.Scanner;
public class Computer  extends ChuQuan{
    public void generateNumbers() {
        setNumbers(Random.random(0,2));
    }
    public String toString() {
        if (getNumbers() == 0) {
            return "电脑玩家出拳头。";
        } else if (getNumbers() == 1) {
            return "电脑玩家出剪刀。";
        } else {
            return "电脑玩家出布。";
        }
    }
}
